package cn.org.july.weixin.service.event;

import java.util.Map;

/**
 * @auther: wanghongjie
 * @blame: wanghongjie
 * @date: 2020-09-03 06:57
 * @Description:
 */
public class MessageEvent implements Event {
    private Object source;
    private Map<String, Object> map;

    @Override
    public Object getSource() {
        return source;
    }

    @Override
    public Map<String, Object> getMessage() {
        return map;
    }

    @Override
    public String callback(String message) {
        return message;
    }

    public void setSource(Object source) {
        this.source = source;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }
}
